package service

import (
	"twokick/conf"
	"twokick/internal/http/dao"
	"context"
)

type Service struct {
	dao 	*dao.Dao
}
func New(conf *conf.HttpConf)*Service{
	return &Service{dao:dao.New(conf)}
}
// Ping
func (s *Service) Ping(ctx context.Context) (err error) {
	return s.dao.Ping(ctx)
}
// Close
func (s *Service) Close() {
	s.dao.Close()
}